import { request } from '@umijs/max';

// 请求采购列表
export async function queryRoleUserList(body: any, options?: { [key: string]: any }) {
  return request('/erpadminuser/adminuserlist', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

export async function addRoleUser(body: any, options?: { [key: string]: any }) {
  return request('/erpadminuser/adminuseradd', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

export async function updateRoleUser(body: any, options?: { [key: string]: any }) {
  return request('/erpadminuser/adminuserupdate', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

export async function delRoleUser(body: any, options?: { [key: string]: any }) {
  return request('/erpadminuser/adminuserdelete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
